package com.xmall.member.service;

import com.xmall.define.dto.member.DeliveryAddressDto;
import com.xmall.member.entity.DeliveryAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xmall.member.define.request.DeliveryAddressUpdateRequest;

import java.util.List;

/**
 * <p>
 * 收货地址 服务类
 * </p>
 *
 * @author xmall
 * @since 2023-11-18
 */
public interface IDeliveryAddressService extends IService<DeliveryAddress> {

    /**
     * 详情
     */
    DeliveryAddressDto info(Long id);

    /**
     * 列表
     */
    List<DeliveryAddressDto> list(Long memberId);

    /**
     * 保存
     */
    void saveEntity(DeliveryAddressUpdateRequest request);

    /**
     * 编辑
     */
    void updateEntity(DeliveryAddressUpdateRequest request);

    /**
     * 删除
     */
    void deleteEntity(Long id);
}
